package com.hrms.doctor.service;

import com.hrms.doctor.domain.Schedule;
import com.hrms.doctor.domain.vo.ScheduleBriefVo;
import com.hrms.doctor.domain.vo.ScheduleVo;

import java.time.LocalDateTime;
import java.util.List;

public interface ScheduleService {
    //List<Schedule> selectSchedule(String doctorName,String patientName);

    //修改随访
    Integer updateSchedule(Schedule schedule);
    //新增随访
    Integer insertSchedule(Schedule schedule);
    //批量删除
    Integer deleteSchedule(List<Long> list);
    //根据患者ID查询随访数目
    Integer selectCountByPatientId(Long id);
    //根据医生ID查询随访数目
    Integer selectCountByDoctorId(Long id);
    //医生通过医生ID查找病人随访记录
    List<ScheduleVo> selectPatientById(Long id);
    //患者通过患者ID查找医生随访记录
    List<ScheduleVo> selectDoctorById(Long id);
    //删除医生时删除医生关联的随访记录
    void deleteScheduleById(List<Long> list);

    List<ScheduleVo> selectPatientByIdWithName(Long id, String patientName);

    List<ScheduleBriefVo> getScheduleByTime(LocalDateTime begin, LocalDateTime end, String deptName);

    ScheduleVo getInfoByScheduleId(Long id);
}
